package game.games.graphictest;

import java.awt.Color;
import java.awt.Point;

public class Robot extends AbstractShape
{
    public Robot()
    {
        super(9,8);
    }
    
    @Override
    protected void setShape()
    {
        setCellSize(10);
        // body
        setPoints(new Point(2, 0), new Point(6, 5), Color.GREEN);
        // arms
        setPoints(new Point(0, 3), new Point(1, 3), Color.GREEN);
        setPoints(new Point(7, 3), new Point(8, 3), Color.GREEN);
        // legs
        getCells().setValue(new Point(2, 6), Color.GREEN);
        setPoints(new Point(1, 7), new Point(2, 7), Color.GREEN);
        getCells().setValue(new Point(6, 6), Color.GREEN);
        setPoints(new Point(6, 7), new Point(7, 7), Color.GREEN);
        // eyes
        getCells().setValue(new Point(3, 1), Color.BLUE);
        addExclusivePoint(3, 1);
        getCells().setValue(new Point(5, 1), Color.BLUE);
        addExclusivePoint(5, 1);
        // mouth
        setPoints(new Point(3, 3), new Point(5, 3), Color.WHITE);
        addExclusivePoints(new Point(3, 3), new Point(5, 3));
    }
}
